//
//  AddressTableViewCell.m
//  Mahjong
//
//  Created by Chen on 16/9/18.
//  Copyright © 2016年 Elliot. All rights reserved.
//

#import "AddressTableViewCell.h"

@interface AddressTableViewCell()



@end

@implementation AddressTableViewCell
- (IBAction)seleAction:(UIButton *)sender {
//    sender.selected = !sender.selected;
}
-(void)drawRect:(CGRect)rect{
    [super drawRect:rect];
    [self.seleButton setImage:[UIImage imageNamed:@"选择"] forState:UIControlStateNormal];
    [self.seleButton setImage:[UIImage imageNamed:@"选择1"] forState:UIControlStateSelected];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    if (selected) {
        self.seleButton.selected = YES;
        if (self.string != nil) {
            self.string(self.num,self.address.text,self.name.text,self.tel.text);
        }
    }else{
    self.seleButton.selected = NO;
    }
    // Configure the view for the selected state
}
-(void)string:(numBlock)str{
    self.string = str;
}
@end
